/*
package com.cqqs.controller;


import com.cqqs.common.bean.BaseRes;
import com.cqqs.controller.dto.req.test.TestSingleTableReq;
import com.cqqs.mapper.po.Contact;
import com.cqqs.mapper.po.extend.ProjectPageExtend;
import com.cqqs.page.TableDataInfo;
import com.cqqs.service.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

*/
/**
 * 测试控制器
 *
 * @author mjxie
 * @date 2022/09/21
 *//*

@RestController("/test")
@Api(tags = "测试接口")
public class TestController extends BaseController {

    private final TestService testService;

    @Autowired
    public TestController(TestService testService) {
        this.testService = testService;
    }

    @GetMapping("/success")
    @ApiOperation("测试")
    public String test() {
        return "success";
    }

    @GetMapping("/testSingleTablePage")
    @ApiOperation("单表分页")
    @ApiImplicitParams({@ApiImplicitParam(name = "pageNum", value = "页码 如1 2 3"),
            @ApiImplicitParam(name = "pageSize", value = "页码如 10 15 "),
            @ApiImplicitParam(name = "orderByColumn", value = "排序列字段名"),
            @ApiImplicitParam(name = "isAsc", value = "排序方式 升序=ascending/asc,降序=descending/desc ")})
    public BaseRes<TableDataInfo<Contact>> testSingleTablePage(TestSingleTableReq req) {
        startPage();
        List<Contact> list = testService.testSingleTablePage(req);
        return new BaseRes<>(new TableDataInfo().getDataTable(list));
    }


    @GetMapping("/testMultiTablePage")
    @ApiOperation(value = "多表分页")
    @ApiImplicitParams({@ApiImplicitParam(name = "pageNum", value = "页码 如1 2 3"),
            @ApiImplicitParam(name = "pageSize", value = "页码如 10 15 "),
            @ApiImplicitParam(name = "orderByColumn", value = "排序列字段名"),
            @ApiImplicitParam(name = "isAsc", value = "排序方式 升序=ascending/asc,降序=descending/desc ")})
    public BaseRes<TableDataInfo<ProjectPageExtend>> testMultiTablePage(TestSingleTableReq req) {
        startPage();
        List<ProjectPageExtend> list = testService.testMultiTablePage(req);
        return new BaseRes<>(new TableDataInfo().getDataTable(list));
    }


}
*/
